﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Infrastructure;
using Enterprise.Model.ZhiWu;
using Enterprise.Service.ZhiWu;
using Enterprise.Control;
namespace Enterprise.UI.Web.Manage.ZhiWu
{
    public partial class Index : System.Web.UI.Page
    {        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OnStart();
            }
        }

        private void OnStart()
        {
            CreateBT.AddButton("Manage.aspx?Cmd=New", Utility.PopedomType.New, HeadMenu1);
            ZhiwuService zwService = new ZhiwuService();
            List<ZhiwuEntity> list = zwService.ZhiWuList();
            GridView1.DataSource = list;
            GridView1.DataBind();
        }
    }
}